<script language="javascript">
// localization, used in javasrcipt
var btnOk = "Ok";
var btnCancel = "Cancel";
var btnYes = "Yes";
var btnNo = "No";
var delConfirm1 = "Are you shure to delete profile ";
var delConfirm2 = "?<br><b>This operation can't be undone!<b>";
var clonePref = "Copy of ";
</script>
<script language="javascript" src="/scripts/profiles.js"></script>
<h3 class="ui-widget-header-h3">Scanning profiles</h3>
<div style="margin: 5px;"><table width="100%"><tr valign="top">
<td width="300px"><div class="ui-widget-header" style="padding-left: 5px;">Profiles</div>
<div class="ui-widget" style="margin: 3px;">
	<a href="#" onclick="return addProfile();"><span class="ui-icon ui-icon-plusthick ui-icon-btn" title="Add profile"></span></a>
	<a href="#" onclick="return delProfile();"><span class="ui-icon ui-icon-close ui-icon-btn" title="Delete profile"></span></a>
	<a href="#" onclick="return cloneProfile();"><span class="ui-icon ui-icon-circle-plus ui-icon-btn" title="Clone profile"></span></a>
</div>
<table width="100%" class="ui-widget-content">
[{section name=prof loop=$proflist}]
	[{cycle values='ui-widget,ui-state-hover' assign=rowClass}]
	<tr class="[{$rowClass}]"><td onclick="selectProfile('[{$proflist[prof][0]}]', '[{$proflist[prof][1]}]')">[{$proflist[prof][1]}]</td></tr>
[{/section}]
</table>
</div>
</td>
<td><div class="ui-widget-header" style="padding-left: 5px;"> Profile Details</div>
<div width="100%" id="prof_edit"><table style="width:100%; height:200px;"><tr valign="middle"><td align="center"><b>Select profile to view and edit it.</b></td></tr></table></div>
</td>
</tr></table></div>
<div id="errorEdit" style="display: none">
	<div class="ui-state-error ui-corner-all" width="100%" style="padding: 5px;">
		<span style="float: left; margin-right: 0.3em;" class="ui-icon ui-icon-alert"></span>
		Can't load editor for requested profile!
	</div>
</div>
<div id="newName" style="display: none" title="Create new profile">
<b>New profile name: </b><input id="nameInput" type="text" value="" onchange="profileName=this.value; return false;">
</div>
<div id="msgBox" style="display: none" title="Warning">
<span id="msgText"></span>
</div>
